/* 基础样式 */
.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  padding-bottom: 180rpx; /* 为底部导航栏预留空间 */
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
}

.navbar-content {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-left {
  display: flex;
  align-items: center;
}

.team-logo {
  font-size: 40rpx;
  margin-right: 15rpx;
}

.team-name {
  font-size: 32rpx;
  font-weight: bold;
  color: white;
}

/* 视角切换样式 */
.view-toggle {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 30rpx;
  padding: 5rpx 10rpx;
}

.toggle-text {
  font-size: 24rpx;
  color: white;
  padding: 0 15rpx;
}

.toggle-text.active {
  font-weight: bold;
}

.toggle-switch {
  width: 80rpx;
  height: 40rpx;
  background-color: white;
  border-radius: 20rpx;
  position: relative;
  margin: 0 5rpx;
}

.toggle-dot {
  width: 36rpx;
  height: 36rpx;
  background-color: #FF7A00;
  border-radius: 50%;
  position: absolute;
  top: 2rpx;
  left: 2rpx;
  transition: transform 0.3s ease;
}

/* 主内容区域 */
.main-content {
  padding-top: calc(100rpx + env(safe-area-inset-top));
}

/* 轮播图样式 */
.carousel-container {
  width: 100%;
  margin-bottom: 30rpx;
}

.carousel-swiper {
  width: 100%;
  height: 400rpx;
}

.carousel-item {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.carousel-icon {
  font-size: 100rpx;
  margin-bottom: 20rpx;
}

.carousel-text {
  text-align: center;
  padding: 0 40rpx;
}

.carousel-title {
  font-size: 40rpx;
  font-weight: bold;
  display: block;
  margin-bottom: 15rpx;
}

.carousel-desc {
  font-size: 28rpx;
  opacity: 0.9;
}

/* 卡片通用样式 */
.card {
  width: 90%;
  margin: 0 auto 30rpx;
  background-color: white;
  border-radius: 20rpx;
  padding: 30rpx;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.card-header {
  margin-bottom: 25rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
}

/* 新人视角 - 球队介绍卡片 */
.team-intro-image {
  width: 100%;
  border-radius: 15rpx;
  overflow: hidden;
  margin-bottom: 25rpx;
}

.team-intro-image image {
  width: 100%;
  height: auto;
}

.team-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20rpx;
  margin-bottom: 30rpx;
}

.info-item {
  background-color: #f9f9f9;
  padding: 15rpx;
  border-radius: 10rpx;
}

.info-label {
  font-size: 24rpx;
  color: #666;
  display: block;
  margin-bottom: 5rpx;
}

.info-value {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
}

.join-button {
  width: 100%;
  height: 80rpx;
  line-height: 80rpx;
  color: white;
  font-size: 30rpx;
  border-radius: 10rpx;
  background-color: #FF7A00;
  border: none;
}

.new-member-view-btn {
  font-size: 26rpx;
  color: #FF7A00;
  display: flex;
  align-items: center;
  line-height: 1;
  background-color: transparent;
  padding: 5rpx 15rpx;
  border: 1rpx solid #FF7A00;
  border-radius: 15rpx;
  height: 50rpx;
}


/* 队员列表卡片 - 优化版样式 */
.players-card {
  background-color: #fff;
  border-radius: 24rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  padding: 30rpx;
  margin-bottom: 30rpx;
  overflow: hidden;
}

/* 卡片头部 */
.players-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30rpx;
}

.players-card__title {
  font-size: 32rpx;
  font-weight: bold;
  color: #1a1a1a;
}

.players-card__actions {
  display: flex;
}

.players-card__action-btn {
  font-size: 26rpx;
  color: #FF7A00;
  display: flex;
  align-items: center;
  line-height: 1;
  background-color: transparent;
  padding: 5rpx 15rpx;
  border: 1rpx solid #FF7A00;
  border-radius: 15rpx;
  height: 50rpx;
}

.players-card__action-btn .icon-arrow-right {
  font-size: 24rpx;
  margin-left: 8rpx;
}

/* 位置分类标签 */
.position-tabs {
  width: 100%;
  white-space: nowrap;
  margin-bottom: 30rpx;
  padding-bottom: 5rpx;
  scrollbar-width: none; /* 隐藏滚动条 */
}

.position-tabs::-webkit-scrollbar {
  display: none; /* 隐藏滚动条 */
}

.tab-item {
  display: inline-block;
  padding: 12rpx 24rpx;
  margin-right: 16rpx;
  font-size: 26rpx;
  border-radius: 30rpx;
  background-color: #f5f5f5;
  color: #666;
  transition: all 0.2s ease;
  line-height: 1;
}

.tab-item.active {
  background-color: #FF7A00;
  color: white;
  box-shadow: 0 4rpx 12rpx rgba(255, 122, 0, 0.3);
}

.tab-item--hover {
  background-color: #eee;
}

.tab-item.active.tab-item--hover {
  background-color: #e86c00;
}

/* 队员网格 */
.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24rpx;
}

/* 队员卡片 */
.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx 10rpx;
  border-radius: 16rpx;
  transition: all 0.2s ease;
  position: relative;
}

.player-card--hover {
  background-color: #f9f9f9;
  transform: translateY(-2rpx);
}

.player-card__avatar-container {
  position: relative;
  width: 120rpx;
  height: 120rpx;
  margin-bottom: 15rpx;
}

.player-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2rpx solid #f0f0f0;
}

.player-card__position-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 20rpx;
  color: white;
  padding: 4rpx 10rpx;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15);
}

.player-card__name {
  font-size: 28rpx;
  font-weight: 500;
  color: #333;
  margin-bottom: 6rpx;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.player-card__number {
  font-size: 24rpx;
  color: #888;
  background-color: #f5f5f5;
  padding: 3rpx 12rpx;
  border-radius: 12rpx;
}

/* 无数据状态 */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80rpx 0;
  color: #999;
}

.empty-state .icon-empty {
  font-size: 80rpx;
  margin-bottom: 20rpx;
  opacity: 0.5;
}

.empty-state__text {
  font-size: 28rpx;
}

/* 骨架屏样式 */
.skeleton-loading .skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.position-tabs.skeleton-loading .skeleton {
  width: 120rpx;
  height: 50rpx;
  border-radius: 30rpx;
  display: inline-block;
  margin-right: 16rpx;
}

.players-grid.skeleton-loading .skeleton {
  width: 100%;
  height: 200rpx;
  border-radius: 16rpx;
}

/* 新人视角 - 运动介绍卡片 */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20rpx;
}
.intro-item-btn {
  font-size: 26rpx;
  color: #FF7A00;
  display: flex;
  align-items: center;
  line-height: 1;
  background-color: transparent;
  padding: 5rpx 15rpx;
  border: 1rpx solid #FF7A00;
  border-radius: 15rpx;
  height: 50rpx;
}
.intro-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx 10rpx;
  background-color: #f9f9f9;
  border-radius: 15rpx;
  text-align: center;
}

.intro-icon {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40rpx;
  color: white;
  margin-bottom: 15rpx;
}

.intro-title {
  font-size: 28rpx;
  font-weight: 500;
  margin-bottom: 5rpx;
}

.intro-desc {
  font-size: 22rpx;
  color: #666;
}

/* 队员视角 - 赛事通知卡片 */
.card-header-btn {
    font-size: 26rpx;
    color: #1677FF;
    background-color: transparent;
    padding: 5rpx 15rpx;
    border: 1rpx solid #1677FF;
    border-radius: 15rpx;
    height: 50rpx;
    line-height: 50rpx;
}
.match-status-tabs {
  display: flex;
  border-bottom: 2rpx solid #eee;
  margin-bottom: 30rpx;
}

.status-tab {
  flex: 1;
  text-align: center;
  padding: 15rpx 0;
  font-size: 26rpx;
  color: #666;
}
.status-tab.active {
  color: #1677FF;
  font-weight: 500;
  border-bottom: 4rpx solid #1677FF;
}

.matches-timeline {
  position: relative;
  padding-left: 40rpx;
}
.matches-timeline::before {
  content: '';
  position: absolute;
  left: 18rpx;
  top: 0;
  bottom: 0;
  width: 2rpx;
  background-color: #eee;
}

.match-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40rpx;
}
.timeline-dot {
  width: 20rpx;
  height: 20rpx;
  border-radius: 50%;
  background-color: #1677FF;
  margin-top: 6rpx;
  margin-right: 20rpx;
}

.match-details {
  flex: 1;
  background-color: #f9f9f9;
  padding: 20rpx;
  border-radius: 10rpx;
}
.match-title {
  font-size: 28rpx;
  font-weight: 500;
  margin-bottom: 10rpx;
}
.match-info {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 6rpx;
}
.match-result {
  margin-top: 10rpx;
  color: #ff4d4f;
  font-size: 24rpx;
}

/* 队员视角 - 个人通知卡片 */
.filter-button {
  font-size: 26rpx;
  color: #1677FF;
  background-color: transparent;
  padding: 5rpx 15rpx;
  border: 1rpx solid #1677FF;
  border-radius: 15rpx;
  height: 50rpx;
  line-height: 50rpx;
}

.notifications-list {
  margin-top: 10rpx;
}

.notification-item {
  display: flex;
  padding: 15rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-icon {
  font-size: 16rpx;
  margin-right: 15rpx;
  margin-top: 10rpx;
}

.notification-icon.unread {
  color: #FF7A00;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 28rpx;
  font-weight: 500;
  display: block;
}

.notification-time {
  font-size: 22rpx;
  color: #999;
  display: block;
  margin-bottom: 5rpx;
}

.notification-desc {
  font-size: 24rpx;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 队员视角 - 训练安排卡片 */
.training-item {
  display: flex;
  padding: 15rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
  align-items: center;
}

.training-item:last-child {
  border-bottom: none;
}

.training-date {
  width: 100rpx;
  text-align: center;
  margin-right: 20rpx;
}

.date-day {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  display: block;
}

.date-week {
  font-size: 24rpx;
  color: #666;
}

.training-details {
  flex: 1;
}

.training-time {
  font-size: 24rpx;
  color: #666;
  display: block;
  margin-bottom: 5rpx;
}

.training-location {
  font-size: 24rpx;
  color: #666;
  display: block;
  margin-bottom: 5rpx;
}

.training-topic {
  font-size: 28rpx;
  font-weight: 500;
  display: block;
  margin-bottom: 5rpx;
}

.training-equipment {
  font-size: 22rpx;
  color: #999;
}

.attend-button {
  width: 140rpx;
  height: 60rpx;
  line-height: 60rpx;
  font-size: 24rpx;
  color: white;
  background-color: #1677FF;
  border: none;
  border-radius: 8rpx;
}

/* 下拉刷新样式 */
::-webkit-scrollbar {
  width: 0;
  height: 0;
  color: transparent;
}

/* 适配深色模式 */
@media (prefers-color-scheme: dark) {
  .container {
    background-color: #1a1a1a;
  }
  
  .card {
    background-color: #2c2c2c;
  }
  
  .card-title, .info-value, .player-name, .intro-title, 
  .match-title, .notification-title, .date-day, .training-topic {
    color: white;
  }
  
  .info-item, .tab-item, .intro-item, .match-content {
    background-color: #383838;
  }
  
  .info-label, .player-number, .intro-desc, .status-tab,
  .match-date, .match-info, .notification-time, .notification-desc,
  .date-week, .training-time, .training-location, .training-equipment {
    color: #ccc;
  }
}

/* 新增样式 */
.scroll-container {
  max-height: 400rpx; /* 根据实际需要调整高度 */
  overflow-y: auto;
}